import type { AppRouteModule } from '@/router/types'
import { LAYOUT } from '@/router/constant'

const sys: AppRouteModule = {
  path: '/sys',
  fullPath: '/sys',
  name: '系统管理',
  component: LAYOUT,
  redirect: '/sys/employee/list',
  meta: {
    icon: 'ion:settings-outline',
    title: '系统管理',
    orderNo: 2,
    needPermission: true,
  },
  children: [
    {
      path: '/sys/employee/list',
      fullPath: '/sys/employee/list',
      name: 'EmployeeList',
      component: () => import('@/views/sys/employee/index.vue'),
      meta: {
        title: '用户列表',
        icon: 'ph:user-duotone',
        needPermission: true,
      },
    },
    {
      path: '/sys/role/list',
      fullPath: '/sys/role/list',
      name: 'RoleList',
      component: () => import('@/views/sys/role/index.vue'),
      meta: {
        title: '角色列表',
        icon: 'eos-icons:role-binding-outlined',
        needPermission: true,
      },
    },
    {
      path: '/sys/dept/list',
      fullPath: '/sys/dept/list',
      name: 'DeptList',
      component: () => import('@/views/sys/dept/index.vue'),
      meta: {
        title: '部门列表',
        icon: 'mingcute:department-line',
        needPermission: true,
      },
    },
    {
      path: '/sys/dict/list',
      fullPath: '/sys/dict/list',
      name: 'DictList',
      component: () => import('@/views/sys/dict/index.vue'),
      meta: {
        title: '字典列表',
        icon: 'fluent-mdl2:dictionary',
        needPermission: true,
      },
    },
  ],
}

export default sys
